<?php
namespace app\admin\controller;
use app\common\model\Upload as UploadModel;
use app\common\controller\AdminBase;
class Upload extends AdminBase
{
    function _initialize()
    {
        parent::_initialize();
        $this->model =new UploadModel();
    }
    public function upimage()
    {
    	 return json($this->model->upfile('images'));
    }
}